# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.10.2)
project("breezelive")

include_directories(${CMAKE_SOURCE_DIR}/librtmp)
add_subdirectory(librtmp)

add_library(
        native-lib
        SHARED
        native-lib.cpp)

find_library(
        log-lib
        log)
target_link_libraries(
        native-lib
        rtmp
        ${log-lib})

# 图像处理操作
include_directories(${CMAKE_SOURCE_DIR}/libyuv/include)
add_subdirectory(libyuv)

add_library(
        image-utils
        SHARED
        ImageUtils.cpp)

target_link_libraries(
        image-utils
        yuv)

